# Allow system_app to access Milpay interface
allow system_app hal_mlipay_hwservice:hwservice_manager { find };

# Allow system_app to call Milpay HAL by binder
binder_call(system_app, hal_mlipay_default)

# Battery Health
r_dir_file(system_app, vendor_sysfs_battery_supply);

# Xiaomi Parts
allow system_app sysfs_thermal:file rw_file_perms;
allow system_app nfc_service:service_manager find;
allow system_app vendor_sysfs_graphics:dir r_dir_perms;
allow system_app vendor_sysfs_graphics:file rw_file_perms;
allow system_app vendor_sysfs_touch:dir r_dir_perms;
allow system_app vendor_sysfs_touch:file rw_file_perms;
allow system_app hal_xiaomi_fingerprint_hwservice:hwservice_manager find;
binder_call(system_app, hal_fingerprint_default)

# zram
allow system_app sysfs_zram:dir r_dir_perms;
allow system_app sysfs_zram:file r_file_perms;
